<template>index</template>

<script setup>
import { onBeforeUnmount } from "vue";

// TODO: 性能监控使用 performance.getEntries PerformanceObserver  performance.timing
const ob = new PerformanceObserver((list) => {
  console.log(list);
});
console.log(performance);
ob.observe({ entryTypes: ["longtask"] });

onBeforeUnmount(() => {
  ob.disconnect();
});
</script>

<style scoped></style>
